package com.tjc.common.pool;

/**
 * @Author: tjc
 * @description
 * @Date Created in 21:55 2022-08-04
 */
public interface PooledObjectFactory<T> {

    T makeObject() throws Exception;

    void activateObject(T o) throws Exception;

    void passivateObject(T o) throws Exception;

    void destroyObject(T o) throws Exception;

    boolean validateObject(T p);
}
